﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.CarService.Tyres
{
    public interface ITyreRepository
    {
        
       /// <summary>
       /// 显示轮胎使用记录
       /// </summary>
       /// <param name="cardnumber"></param>
       /// <param name="pin"></param>
       /// <param name="gui"></param>
       /// <param name="time"></param>
       /// <param name="pageindex"></param>
       /// <param name="pagesize"></param>
       /// <returns></returns>
        Task<PageResponse<TyreDto>> GetShowTyre(string cardnumber, string pin, string gui, DateTime? time, int pageindex, int pagesize);
        /// <summary>
        /// 删除轮胎使用记录
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteDelTyre(int id);
        /// <summary>
        /// 批量删除轮胎使用记录
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteDelsTyre(string ids);
        /// <summary>
        /// 编辑修改
        /// </summary>
        /// <param name="tyreDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateTyre(TyreDto tyreDto);
        /// <summary>
        /// 添加轮胎使用记录
        /// </summary>
        /// <param name="tyreDto"></param>
        /// <returns></returns>
        Task<int> PostAddTyre(TyreDto tyreDto);
    }
}
